<script>
    function funa() {
        return new Promise((resolve, reject) => {
            setTimeout(() => {
                resolve("aaa");
            }, 1000);
        })
    }
    function funb() {
        return new Promise((resolve, reject) => {
            setTimeout(() => {
                resolve("bbb");
            }, 1000);
        })
    }
    function func() {
        return new Promise((resolve, reject) => {
            setTimeout(() => {
                resolve("ccc");
            }, 1000);
        })
    }

    async function main(){
       let a=await funa();
       console.log(a);
       let b=await funb();
       console.log(b);
       let c=await func();
       console.log(c);
    }

    main();
</script>